﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SN.UserControl
{
    public partial class frmSetSheetLabel : Form
    {
        public string SheetName = string.Empty;

        public frmSetSheetLabel()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {

            if (!string.IsNullOrWhiteSpace(textBox1.Text))
            {
                SheetName = textBox1.Text.Trim();
            }
            else
            {
                MessageBox.Show("页签不可以为空!", "提示!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }
            this.DialogResult = DialogResult.OK;
        }

        private void frmSetSheetLabel_Load(object sender, EventArgs e)
        {
            textBox1.Text = SheetName;
            textBox1.Focus();
        }
    }
}
